<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>添加货品单</title>
<link rel="stylesheet" type="text/css" href="http://localhost/0423/suning/Application/Admin/View/Public/css/admin_style.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/0423/suning/Application/Admin/View/Public/css/table.css" />
<script type="text/javascript">
var APP = "http://localhost/0423/suning";	
</script>
<script src="http://localhost/0423/suning/Static/js/jquery-1.7.2.min.js"></script>
	<script src="http://localhost/0423/suning/Application/Admin/View/Public/js/addGoodsList.js"></script>
    <script type="text/javascript" src="http://localhost/0423/suning/Static/uploadify/jquery.uploadify.min.js"></script>
    <link href="http://localhost/0423/suning/Static/uploadify/uploadify.css" type="text/css" rel="stylesheet"></link>
       <!-- 配置文件 -->
    <script type="text/javascript" src="http://localhost/0423/suning/Static/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="http://localhost/0423/suning/Static/ueditor/ueditor.all.min.js"></script>
    <style type="text/css"> 
   	.tab1{
   		display:none;
   	}
    .hiddenli{
    	position: relative;
    	top:-50px;
    	left:0px;
    	display: none;
    }
    .hiddenli span{
		width: 35px;
		padding: 2px;
		height: 40px;
		line-height: 40px;
		text-align: center;
		border: 1px solid #DDD;
		border-radius: 5px;
		float: left;
		background: #6595F5;
		cursor: pointer;
    }
   .hiddenli  .imgshow{
		width: 400px;
		height: 400px;
		background: none repeat scroll 0% 0% #FFF;
		border-radius: 5px;
		position: absolute;
		top: 50px;
		left: -1px;
		z-index: 1000;
		display: none;
    }
    .hiddenli  .imgshow .close{
    	height: 40px;
    	width: 40px;
    	background: #fff;
    	text-align: center;
    }
    .showGoosIMg li{
        list-style: none;
        float: left;
        width: 200px;
        height:200px;
        padding: 5px;
    }
    li{
        padding: 0px 10px;
        float: left;
        list-style: none;
    }
    li input{
        padding: 3px: 
    }
    .specValue{
        width: 600px;

    }
    .showGoosIMg li img{
        width: 200px;
        height: 200px;
        overflow: hidden;
    }
    .btn{
        display: inline-block;
        padding: 5px;
        background: #518CF1;
        color: #fff;
        cursor: pointer;
        text-align: center;
        border-radius: 5px;
        border:1px solid #ddd;
    }
    </style>
    
</head>
<body>
<body class="right_body">
	<div class="body">
		<div class="top_subnav">CMS内容管理平台 ＞ 添加货品单</div>


		<div style="clear:both"></div>
		<div class="use_meth">
			<div class="title">
				<div class="title_info light">
					添加货品单
				</div>
			</div>
<div class="wrap">
<div class="hd-title-header">添加货品单</div>
    <form action="" method="post" class="form-inline hd-form" enctype="multipart/form-data">
        <table class="hd-table hd-table-list table">
           	
         
            <tr>
                <th class="w100">库存</th>
                <td  class="w100">
                    <input type="text" name="goods_list_stock[]" class="w200" value="<?php echo $goodsData['goods_list_stock'];?>"/> 
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">货号</th>
                <td  class="w100">
                    <input type="text" name="goods_list_nums[]" class="w200" value="<?php echo $goodsData['goods_list_nums'];?>"/> 
                </td>
                <td>不填写则自动生成</td>
            </tr>
           <tr>
                <th class="w100">货品规格</th>
                <td>
                    <div class="specValue" width="650">
<?php foreach ($typeAttrData as $k=>$v){?>  
       
    <li><?php echo $v['attr_name'];?><br/> 
     <select name="attr['goods_attr_id<?php echo $k;?>'][]" class="w200">
         <?php foreach ($v['goods_attr_value'] as $key=>$val){?>
             <span class='attrtitle' style='width:180px;display:inline-block; heigh:50px;line-heigt:50px;'>
             <option value="<?php echo $v['goods_attr_id'][$key] ?>" 
				  <?php foreach ($goodsData['attr'] as $ak=>$av){?>
                 <?php if($val == $av ){ ?>selected='selected'<?php } ?>
				 <?php }?>   
             ><?php echo $val;?></option>
            </span>
             </span><br/>
        <?php }?>   
     </select> 
     </li>
 <?php }?>       
                 </div>
                </td>
                <td></td>
            </tr>
          
            
        </table>
        <div class="position-bottom">
        	<input type="hidden" name='goods_gid' value="<?php echo $_GET['gid'] ?>"/>
            <input type="submit" class="hd-btn hd-btn-success" value="添加"/>
        </div>
    </form>
</div>
		</div>
	
	</div>




</body>
</html>
